package com.chat.vo.back;

import java.util.HashMap;
import java.util.Map;

/**
 * ws消息传输-推说说送格式
 * @author GZS
 *
 */
public class PushMoodJsonVo {
	private String status;//消息发表状态 success|error
	private String msg;   //状态消息
	private String type;  //类型
	private PushMoodBodyVo body;//消息主体
	
	
	//*************JSON-MAP********************
	public Map<String, Object> toMap(){
		Map<String, Object> map = new HashMap<>();
		map.put("status", status);
		map.put("msg", msg);
		map.put("type", type);
		map.put("body", body.toMap());
		return map;
	}
	
	
	
	
	
	
	
	public PushMoodJsonVo(){
		this.status="error";
		this.msg=null;
		this.type="2";
	}
	public void MsgSuccess(){
		this.status="success";
	}
	public void MsgError(String msg){
		this.msg=msg;
	}
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public PushMoodBodyVo getBody() {
		return body;
	}
	public void setBody(PushMoodBodyVo body) {
		this.body = body;
	}
	
	
}
